for i in range(27):
    j=26-i
    if i*8-j*5==0:
        print i,j